package org.test.once.manager;

import java.sql.SQLException;
import java.util.List;

import org.test.once.dao.RoleModuleDao;
import org.test.once.model.Module;

/**
 * 
 * @author cennanfang
 * @date 2013-7-25
 * @fileName LoginManager.java
 */
public class LoginManager {
	
	public List<Module> getModules(int roleId) {
		List<Module> modules = null;
		try {
			modules = RoleModuleDao.getInstance().searchModulesByRoleId(roleId);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return modules;
	}
}
